package week12;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


public class GameCanvasMIDlet extends MIDlet {

	private SpriteCanvas sc;
	private MyGameCanvas mc;
	private Display dis;
	
	public GameCanvasMIDlet() {
		dis = Display.getDisplay(this);
		sc = new SpriteCanvas();
		mc = new MyGameCanvas();
	}

	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
		// TODO Auto-generated method stub

	}

	protected void pauseApp() {
		// TODO Auto-generated method stub

	}

	protected void startApp() throws MIDletStateChangeException {
		
		dis.setCurrent(mc);

	}

}
